package core.hiberante4.common;

import core.srping3.SpringContextUtil;

public abstract class CommonEntity {

	public void save(){
		ICommonDao commonDao = SpringContextUtil.getBean("CommonHibernateDao");
		commonDao.save(this);
	}
	
	public void delete(){
		ICommonDao commonDao = SpringContextUtil.getBean("CommonHibernateDao");
		commonDao.delete(this);
	}
	
	public void update(){
		ICommonDao commonDao = SpringContextUtil.getBean("CommonHibernateDao");
		commonDao.update(this);
	}
	
}
